/***************************************************************************
 *   Copyleft 2008-2009 by												   *
 *	 Iwanicki Krzysztof													   *
 *   <gamma.mini.pw.edu.pl/~iwanickik>									   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 ***************************************************************************/
#ifndef __VTEXTRENDERER_H__
#define __VTEXTRENDERER_H__

#include <Types/vTypes.h>
#include "../Graphics/vColor.h"
#include "../../Macros/vMemoryMacros.h"

namespace Vendetta {
	class vTextRenderer {
	public:
		virtual ~vTextRenderer();

		vVoid DrawText(vInt iX, vInt iY, const vString& str, const vColor& color, vBool bItalic = false);

		vVoid Resize(vInt iWidth, vInt iHeight);

		vVoid SetTexture(vUInt iTextId);
	protected:
		vTextRenderer();

		vVoid buildFonts();

	protected:
		static vTextRenderer mSingleton;
		vUInt mDisplayList;
		vUInt mTextureID;
		vInt mWidth;
		vInt mHeight;

	};
}

#endif // __VTEXTRENDERER_H__